package com.ruoyi.system.api.service;

import com.ruoyi.system.api.ResponseWithData;
import com.ruoyi.system.api.domain.PartInfo;
import com.ruoyi.system.api.domain.SpareParts;

import java.util.Map;

public interface SparePartsService {

    /**
     *
     * @param enginnerId
     * @param status
     * @return
     */
    ResponseWithData<?> queryPartByFseId(String enginnerId, String status, String partNo, String partName, String custName);

    /**
     *
     * @param params
     * @return
     */
    ResponseWithData<?> getPartInfoByCode(Map<String,Object> params);

    /**
     *
     * @param logisticNo
     * @param shipercode
     * @param custname
     * @return
     */
    ResponseWithData<?> getLogisticsInfoByNumber(String logisticNo, String shipercode, String custname);

    /**
     *
     * @param params
     * @return
     */
    ResponseWithData<?> partReceiving(Map<String, Object> params);

    /**
     *
     * @param params
     * @return
     */
    ResponseWithData<?> partSplit(Map<String, Object> params);

    /**
     *
     * @param params
     * @return
     */
    ResponseWithData<?> partBind(Map<String, Object> params);

    /**
     *
     * @param spareParts
     * @return
     */
    ResponseWithData<?> partBorrowApply(SpareParts spareParts);

    /**
     *
     * @param params
     * @return
     */
    ResponseWithData<?> partBorrowApply(String params) throws Exception;

    /**
     *
     * @param tlId
     * @return
     */
    ResponseWithData<?> queryPartByTlId(Map<String,Object> tlId);

    /**
     *
     * @param info
     * @return
     */
    ResponseWithData<?> queryPartByFseIdPost(PartInfo info);
    /**
     *
     * @param info
     * @return
     */
    ResponseWithData<?> queryPartByFseIdPost2(PartInfo info);

    /**
     *
     * @param enginnerId
     * @param partIds
     * @return
     */
    ResponseWithData<?> queryPartDraft(String enginnerId, String partIds);

    /**
     *
     * @param params
     * @return
     */
    ResponseWithData<?> partChangeHandle(String params);

    /**
     *
     * @param params
     * @return
     */
    ResponseWithData<?> partBindReturnHandle(String params) throws Exception;

    /**
     *
     * @param tableName
     * @param engineerId
     * @return
     */
    ResponseWithData<?> consumablesList(String tableName, Long engineerId);

    /**
     *
     * @return
     */
    ResponseWithData<?> ccAddressData();

    ResponseWithData<?> QueryPriceByPartCode(Map<String, Object> params);

    /**
     * 调用cc紧急借货时段接口，返回结果：0否 1是
     * @return
     */
    ResponseWithData<?> checkTodayIsOnjobInfo();

    ResponseWithData<?> queryPartByFseIdPostBg(PartInfo info);
    ResponseWithData<?> queryPartByFseIdPostCC(PartInfo info);
}
